package com.csdj.dao;

import com.csdj.vo.Informations;
import com.csdj.vo.Replies;

import java.util.List;

public interface InformationsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Informations record);

    int insertSelective(Informations record);

    Informations selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Informations record);

    int updateByPrimaryKeyWithBLOBs(Informations record);

    int updateByPrimaryKey(Informations record);

    /**
     * @Description: 查询全部资讯信息
     * @Param []
     * @Return java.util.List<com.csdj.vo.Informations>
     * @Throws
     **/
    List<Informations> selectAllInformation();

    /**
     * @Description: 根据编号查询资讯信息
     * @Param [id]
     * @Return com.csdj.vo.Informations
     * @Throws
     **/
    Informations selectInformationById(Integer id);

    /**
     * @Description: 添加查看次数
     * @Param [id]
     * @Return int
     * @Throws
     **/
    int addViewCount(Integer id);

    /**
     * @Description: 添加回复数
     * @Param [id]
     * @Return int
     * @Throws
     **/
    int addReplieCount(Integer id);

}